//
//  JMXMessageViewCell.h
//  JMXChatKit
//
//  Created by JMX on 2020/6/24.
//  Copyright © 2020 Uniauto. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JMXChatDefines.h"
#import "JMXMessage.h"

NS_ASSUME_NONNULL_BEGIN

@class JMXMessageViewCell;
@protocol JMXMessageViewCellDelegate <NSObject>

@optional
- (void)messageViewCellDidClick:(__kindof JMXMessageViewCell *)cell;
- (void)messageViewCellStatusDidClick:(__kindof JMXMessageViewCell *)cell;


@end

@interface JMXMessageViewCell : UITableViewCell

- (instancetype)initWithMessage:(id<JMXMessage>)message;
- (instancetype)initWithMessage:(id<JMXMessage>)message type:(NSString *)type;
@property (nonatomic, assign, readonly) JMXBubbleDirection direction;

/// 消息体
@property (nonatomic, strong, nullable) id<JMXMessage> message;

@property (nonatomic, weak) id<JMXMessageViewCellDelegate> delegate;

@property (nonatomic, assign) CGFloat fontScale;

@end

NS_ASSUME_NONNULL_END
